<% content_for :head do %>
  <%= javascript_include_tag :ckeditor %>
<% end %>

<%= form_for [:admin, @email_template], :validate => true do |f| %>

  <%= render "shared/error_messages", :target => @email_template %>

  <table>
    <tbody>
      <tr>
        <th><%= f.label :presentation %></th>
        <td><%= f.text_field :presentation, :size => 30, :maxlength => 50 %></td>
      </tr>
      <tr>
        <th><%= f.label :name %></th>
        <td><%= f.text_field :name, :size => 30, :maxlength => 50 %></td>
      </tr>
      <tr>
        <th><%= f.label :subject %></th>
        <td><%= f.text_field :subject, :size => 80, :maxlength => 150 %></td>
      </tr>
      <tr>
        <th><%= f.label :from %></th>
        <td><%= f.text_field :from, :size => 40, :maxlength => 50 %></td>
      </tr>
      <tr>
        <th><%= f.label :bcc %></th>
        <td><%= f.text_field :bcc, :size => 40, :maxlength => 50 %></td>
      </tr>
      <tr>
        <th><%= f.label :variables %></th>
        <td><%= f.text_area :variables, :cols => "80", :rows => "8" %></td>
      </tr>
      <tr>
        <th><%= f.label :template %></th>
        <td><%= f.text_area :template, :cols => "80", :rows => "25" %></td>
      </tr>
      <tr>
        <td colspan="2"><%= f.submit %></td>
      </tr>
    </tbody>
  </table>
<% end %>